﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace BarManager.Core.Entity
{
    [DataContract]
    public class Cargo
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public bool Admin { get; set; }
        [DataMember]
        public bool Cocina { get; set; }
        [DataMember]
        public bool Mozo { get; set; }

        [Required]
        [StringLength(50)]
        [Display(Name = "Descripción")]
        [DataMember]
        public string Descripcion { get; set; }

        [DataMember]
        public virtual ICollection<Empleado> EmpleadoList { get; set; }

        public Cargo()
        {         
            this.EmpleadoList = new List<Empleado>();
        }
    }
}
